package com.example.demoyyy.JieKouService;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demoyyy.ShiTiYYY.AddressBook;
import com.example.demoyyy.dto.DishDto;

import java.util.List;

public interface AddressBookServiceJieKou extends IService<AddressBook> {
    /**
     * 查询当前用户所有地址
     */
    public List<AddressBook> listByUserId(Long user_id);

    /**
     * 查询当前用户默认地址
     */
    public AddressBook getDefaultByUserId(Long user_id);

    public void setDefaultAddress(Long id, Long user_id);
}
